<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:2px; margin-bottom:2px">
	<tr>
		<td id="content-header-left" align="center" >Categories</td>
		<td id='content-header-center' align='center'><?=$categeoryname?></td>
		<td id="content-header-right"></td>
	</tr>	
	<tr>
		<td id="gossip_left_right" bgcolor="#FF9853" valign="top">
		<table>
		    <?php foreach($main_categeories->result() as $item) {?>
			     <tr>
		       <td><img src="<?=base_url();?>assets/imgs/button-img.gif" /></td>
			   		
			 <td class="sidelinks"><a href="<?=base_url()?>funlist/index/<?=$item->id?>" title="Amazing pictures">&nbsp;<?=trim_name($item->catname,15)?></a></td>
		     		 </tr>
			     <? } ?>
			 </table>
		     
		  </td>
		
			
		  <td align="center" style="vertical-align:top">
		   <table border="0"  width="100%" cellspacing="2px" bgcolor="white" style="margin-top:2px; margin-bottom:2px;margin-left:4px; margin-right:4px">
		 
		      
		      <tr height="28px">
		       <?php $i=1; 
		      foreach($sub_categeories->result() as $item):  ?>
		        <td id="menu-fun" align="left" width='50%'><img src="<?=base_url();?>assets/imgs/buttion-2.gif">&nbsp;&nbsp;<a href="<?=base_url();?>funlist/funlists/<?=$item->id?>"><?=trim_name($item->catname,40)?></td>
		      <?php  $i++;
		        if($i%3==0):
		         echo"</tr><tr height='28px'>";
		         $i++; 
		        endif;
		      endforeach; ?>
		      </tr>
		      
		   </table>	
			
			
			
			</td>
		<td id="gossip_left_right" bgcolor="#FF9853">
		<!-- Begin: AdBrite, Generated: 2009-06-16 5:48:41  -->
<script type="text/javascript">
var AdBrite_Title_Color = 'E1771E';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'FFCC66';
var AdBrite_URL_Color = '008000';
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</script>
<script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1219263&zs=3132305f363030&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
<div><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1219263&afsid=1" style="font-weight:bold;font-family:Arial;font-size:13px;">Your Ad Here</a></div>
<!-- End: AdBrite -->
		</td>
	</tr>

</table>